﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kindohm.Life.Library
{

    public static class Randomizer
    {
        static readonly object randomLock = new object();
        static Random random = new Random();

        public static int Next(int min, int max)
        {
            lock (randomLock)
            {
                return random.Next(min, max);
            }
        }

        public static int Next(int max)
        {
            lock (randomLock)
            {
                return random.Next(max);
            }
        }

    }
}
